package com.edu.koTA07.XmlToBean;

import java.io.InputStream;

import com.edu.koTA07.XmlDataSet.SalesXmlDataSet;
import com.edu.koTA07.takingOrder.R;
import com.edu.koTA07.utils.SalesUtils;
import com.edu.koTA07.xmlreader.SalesXMLtoDataSet;

import android.content.Context;

public class SalesXmlSetToBean{	
    @SuppressWarnings("unused")
	private static final String TAG = null;
	SalesXmlDataSet sales = null;
	SalesUtils util;
    
    public SalesXmlSetToBean(Context context) {
    	super();
    	InputStream in = context.getResources().openRawResource(R.raw.sales);
    	SalesXMLtoDataSet salesXMLtoBean = new SalesXMLtoDataSet(in);
    	sales = salesXMLtoBean.getSalesList();
		util = new SalesUtils(context);
		util.onSaveDataFromXml(sales);
    }

}   
